#include <stdio.h>
int main(void)
{
	int num,number_length = 31;
	scanf("%d",&num);
	for(int i = number_length;i >= 0;i--)
	{
		printf("%d",num>>i&1);
	}
	printf("\n");
	return 0;
}
